<header class="page-header clearfix">
    <h4><i class="fa fa-users"></i>用户管理</h4>

    <div class="toolbox">
        <a ng-click="list.creat()"><i class="fa fa-plus"></i>创建用户</a>
    </div>
    <ol class="breadcrumb">
        <li class="active"><a>用户管理</a></li>
    </ol>
</header>
<section>
    <ui-panel class="panel-list">
        <form class="form-inline form-search" ng-submit="list.search()">
            <div class="form-group">
                <input type="text" maxlength="50" ng-model="list.filter.userCode" class="form-control" placeholder="请输入用户编码查询"/>
            </div>
            <button class="btn btn-default" type="submit">查询</button>
        </form>
        <table class="table table-hover">
            <thead>
            <tr>
                <th width="25%">用户ID</th>
                <th width="20%">用户编码</th>
                <th width="35%">用户名称</th>
                <!--<th width="20%">密码</th>-->
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="elem in list.table">
                <td class="row-head" ng-switch="elem.deleting">
                    {{::elem.userId}}
                    <!--<div class="toolbox" ng-switch-default>
                        <a ng-click="list.deleteUser(elem)"  title="删除"><i class="fa fa-times fa-lg"></i></a>
                    </div>-->
                    <div class="toolbox tb-loading" ng-switch-when="true"><div class="loading-sm"/></div>
                </td>
                <td>{{::elem.userCode}}</td>
                <td>
                    {{::elem.userName}}
                </td>
                <!--<td><a href="" ng-click="list.editPassWord(elem.userId)">修改密码</a></td>-->
            </tr>
            </tbody>
        </table>
        <!--Loading-->
        <div class="loading" ng-show="!list.table"></div>
        <!--分页-->
        <div ng-show="list.table" class="pagination-group">
            <ui-pagination-info items-per-page="10" items-per-page-select="false"
                                total-items="list.page.totalItems"
                                current-page="list.page.currentPage"></ui-pagination-info>
            <button type="button" ng-click="list.getList()" class="btn btn-default btn-refresh"><i
                    class="fa fa-refresh"></i></button>
            <ui-pagination items-per-page="10" total-items="list.page.totalItems"
                           ng-model="list.page.currentPage" ng-change="list.getList()"></ui-pagination>
        </div>
    </ui-panel>
</section>